<!DOCTYPE html>
<html>
<head>
    <title>门店库存交易明细表</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <form class="form-inline" role="form">
                <div class="form-group">
                    <a @click="reset">
                        <i class="fa fa-refresh"></i>
                    </a>
                </div>&nbsp;&nbsp;&nbsp;
                <div class="form-group">
                    <input type="text" class="form-control input-sm" v-model="q.materialName" placeholder="耗材名称">
                </div>&nbsp;&nbsp;&nbsp;
                <div class="form-group">
                    <input type="text" class="form-control input-sm" v-model="q.ticketsNo" placeholder="单据号">
                </div>&nbsp;&nbsp;&nbsp;
                <div class="form-group">
                    <input type="text" class="form-control input-sm" v-model="q.materialCode" placeholder="耗材编号">
                </div>&nbsp;&nbsp;&nbsp;
                <div class="form-group">
                    <select class="form-control input-sm" v-model="q.typeId">
                        <option disabled value="">库存类型</option>
                        <option v-for="item in storeInoutEnum" :value="item.id">{{item.describe}}</option>
                    </select>
                </div>&nbsp;&nbsp;&nbsp;
                <div class="form-group">
                    <select class="form-control input-sm" v-model="q.direction">
                        <option disabled value="">库存交易方向</option>
                        <option v-for="item in directionEnum" :value="item.id">{{item.describe}}</option>
                    </select>
                </div>&nbsp;&nbsp;&nbsp;
                <div class="form-group">
                    <input class="form-control input-sm" v-model="q.beginCreatetime" @click="checkBeginDate" placeholder="创建时间起" />
                    <label>至</label>
                    <input class="form-control input-sm" v-model="q.endCreatetime" @click="checkEndDate" placeholder="创建时间止" />
                </div>&nbsp;&nbsp;&nbsp;
                <a class="btn btn-primary btn-sm" @click="query"><i class="fa fa-search"></i>&nbsp;查询</a>
                <a class="btn btn-primary btn-sm" @click="exportExcel"><i class="fa fa-sign-out"></i>&nbsp;导出</a>
            </form>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">单据号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="storeStockMaterialIo.ticketsNo" placeholder="单据号"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="storeStockMaterialIo.materialId" placeholder="商品id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品数量</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="storeStockMaterialIo.materialQuantity" placeholder="商品数量"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">单位</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="storeStockMaterialIo.unit" placeholder="单位"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">仓库id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="storeStockMaterialIo.stockId" placeholder="仓库id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">库存交易类型：1.采购入库2.红冲3.盘存4.销售出库5.盘亏6.生产消耗7.调拨入库8.调拨出库9.数据迁移10.采购退货</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="storeStockMaterialIo.type" placeholder="库存交易类型：1.采购入库2.红冲3.盘存4.销售出库5.盘亏6.生产消耗7.调拨入库8.调拨出库9.数据迁移10.采购退货"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">库存交易方向(1增加,-1减少)</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="storeStockMaterialIo.direction" placeholder="库存交易方向(1增加,-1减少)"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">创建人</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="storeStockMaterialIo.createName" placeholder="创建人"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">创建时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="storeStockMaterialIo.createTime" placeholder="创建时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">备注</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="storeStockMaterialIo.remark" placeholder="备注"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">删除标记:0.正常1.标记删除</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="storeStockMaterialIo.del" placeholder="删除标记:0.正常1.标记删除"/>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary  btn-sm" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning  btn-sm" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/mercharReport/reportStorestockmaterialio.js?_${.now?long}"></script>
</body>
</html>